using System;
using System.Reflection;

namespace Publisher
{
    public static class EX
    {

       public  static string GetVersionExe(this string filename)
        {
            // Specify the path to your WPF application executable
            string executablePath =  filename ;

            // Load the assembly from the executable file
            Assembly assembly = Assembly.LoadFile(executablePath);

            // Get the assembly version
            Version version = assembly.GetName().Version;

            // Output the AssemblyVersion
             return version.ToString();
        }
       
       // 1 get ver from a.exe
       // 2 update the update the update.xml file
       // 3 package the app files into v.zip
       // 4 upload to server the update.xml and v.zip
       // 5 done
        
    }
}